package bulk_param.view;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import bulk_param.controller.ManuelUtilisationController;

public class Bulk_Param_Main_View extends JFrame {
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	private JTabbedPane onglets;
	private ZABPQ_All_Onglet_View zabpq_All_Onglet_View;
	private Num_Spe_All_Onglet_View num_Spe_Contact_Num_View;
	public JMenuBar menuBar= new JMenuBar();
	public JMenu menuAide= new JMenu("Aide");
	public JMenuItem menuAideContent= new JMenuItem("Manuel utilisateur");
	private JPanel panel0ZABPQ, panelNumSpe;
    
	  public Bulk_Param_Main_View(){
	    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);	  
	    this.setPreferredSize(new Dimension(900,550));
	    
		//Menus
		menuAide.add(menuAideContent);
	  		
		//menuBar
		menuBar.add(menuAide);
	    
	    Container pane = this.getContentPane();
	    
	    //Création de notre conteneur d'onglets : 
	    onglets = new JTabbedPane(JTabbedPane.LEFT);

	    zabpq_All_Onglet_View = new ZABPQ_All_Onglet_View();
	    num_Spe_Contact_Num_View = new Num_Spe_All_Onglet_View();
	    panel0ZABPQ = zabpq_All_Onglet_View.panelAllZABPQ();
	    panelNumSpe = num_Spe_Contact_Num_View.panelNumSepciaux();
	    onglets.add(" Point 0ZABPQ", panel0ZABPQ);
	    onglets.add("Num Spéciaux", panelNumSpe);
	     
	    menuAideContent.addActionListener(new ManuelUtilisationController());
	    
	    //On passe ensuite les onglets au content pane  
	    pane.add(menuBar,BorderLayout.NORTH);
	    pane.add(onglets,BorderLayout.CENTER);
	    this.setVisible(true);
	  }
}
